/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://code.google.com/p/google-apis-client-generator/
 * (build: 2014-11-17 18:43:33 UTC)
 * on 2014-12-20 at 18:08:51 UTC 
 * Modify at your own risk.
 */

package com.appspot.showup_app.showup.model;

/**
 * Model definition for ShowUpAppointmentMessage.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the showup. For a detailed explanation see:
 * <a href="http://code.google.com/p/google-http-java-client/wiki/JSON">http://code.google.com/p/google-http-java-client/wiki/JSON</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class ShowUpAppointmentMessage extends com.google.api.client.json.GenericJson implements Comparable<ShowUpAppointmentMessage> {

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("confirmation_status") @com.google.api.client.json.JsonString
  private java.lang.Long confirmationStatus;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("confirmation_time") @com.google.api.client.json.JsonString
  private java.lang.Long confirmationTime;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private ShowUpCustomerMessage customer;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean deleted;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long duration;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String id;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("last_updated") @com.google.api.client.json.JsonString
  private java.lang.Long lastUpdated;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String notes;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("notification_time") @com.google.api.client.json.JsonString
  private java.lang.Long notificationTime;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("remote_id")
  private java.lang.String remoteId;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long repeated;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("short_url")
  private java.lang.String shortUrl;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("start_time") @com.google.api.client.json.JsonString
  private java.lang.Long startTime;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String timezone;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String title;

  /**
   * @return value or {@code null} for none
   */
  public java.lang.Long getConfirmationStatus() {
    return confirmationStatus;
  }

  /**
   * @param confirmationStatus confirmationStatus or {@code null} for none
   */
  public ShowUpAppointmentMessage setConfirmationStatus(java.lang.Long confirmationStatus) {
    this.confirmationStatus = confirmationStatus;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.Long getConfirmationTime() {
    return confirmationTime;
  }

  /**
   * @param confirmationTime confirmationTime or {@code null} for none
   */
  public ShowUpAppointmentMessage setConfirmationTime(java.lang.Long confirmationTime) {
    this.confirmationTime = confirmationTime;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public ShowUpCustomerMessage getCustomer() {
    return customer;
  }

  /**
   * @param customer customer or {@code null} for none
   */
  public ShowUpAppointmentMessage setCustomer(ShowUpCustomerMessage customer) {
    this.customer = customer;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getDeleted() {
    return deleted;
  }

  /**
   * @param deleted deleted or {@code null} for none
   */
  public ShowUpAppointmentMessage setDeleted(java.lang.Boolean deleted) {
    this.deleted = deleted;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.Long getDuration() {
    return duration;
  }

  /**
   * @param duration duration or {@code null} for none
   */
  public ShowUpAppointmentMessage setDuration(java.lang.Long duration) {
    this.duration = duration;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.String getId() {
    return id;
  }

  /**
   * @param id id or {@code null} for none
   */
  public ShowUpAppointmentMessage setId(java.lang.String id) {
    this.id = id;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.Long getLastUpdated() {
    return lastUpdated;
  }

  /**
   * @param lastUpdated lastUpdated or {@code null} for none
   */
  public ShowUpAppointmentMessage setLastUpdated(java.lang.Long lastUpdated) {
    this.lastUpdated = lastUpdated;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.String getNotes() {
    return notes;
  }

  /**
   * @param notes notes or {@code null} for none
   */
  public ShowUpAppointmentMessage setNotes(java.lang.String notes) {
    this.notes = notes;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.Long getNotificationTime() {
    return notificationTime;
  }

  /**
   * @param notificationTime notificationTime or {@code null} for none
   */
  public ShowUpAppointmentMessage setNotificationTime(java.lang.Long notificationTime) {
    this.notificationTime = notificationTime;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.String getRemoteId() {
    return remoteId;
  }

  /**
   * @param remoteId remoteId or {@code null} for none
   */
  public ShowUpAppointmentMessage setRemoteId(java.lang.String remoteId) {
    this.remoteId = remoteId;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.Long getRepeated() {
    return repeated;
  }

  /**
   * @param repeated repeated or {@code null} for none
   */
  public ShowUpAppointmentMessage setRepeated(java.lang.Long repeated) {
    this.repeated = repeated;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.String getShortUrl() {
    return shortUrl;
  }

  /**
   * @param shortUrl shortUrl or {@code null} for none
   */
  public ShowUpAppointmentMessage setShortUrl(java.lang.String shortUrl) {
    this.shortUrl = shortUrl;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.Long getStartTime() {
    return startTime;
  }

  /**
   * @param startTime startTime or {@code null} for none
   */
  public ShowUpAppointmentMessage setStartTime(java.lang.Long startTime) {
    this.startTime = startTime;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.String getTimezone() {
    return timezone;
  }

  /**
   * @param timezone timezone or {@code null} for none
   */
  public ShowUpAppointmentMessage setTimezone(java.lang.String timezone) {
    this.timezone = timezone;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.String getTitle() {
    return title;
  }

  /**
   * @param title title or {@code null} for none
   */
  public ShowUpAppointmentMessage setTitle(java.lang.String title) {
    this.title = title;
    return this;
  }

  @Override
  public ShowUpAppointmentMessage set(String fieldName, Object value) {
    return (ShowUpAppointmentMessage) super.set(fieldName, value);
  }

  @Override
  public ShowUpAppointmentMessage clone() {
    return (ShowUpAppointmentMessage) super.clone();
  }


  public int compareTo(ShowUpAppointmentMessage compareMessage) {

    long compareTime = ((ShowUpAppointmentMessage) compareMessage).getStartTime();
    return this.getStartTime().compareTo(compareTime);

  }




}

